home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / TCCOMMON.MAK < prev    next >
Text File  |  1992-03-07  |  3KB  |  117 lines

  1. #    Copyright (C) 1991 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # Section of MS-DOS makefile for Ghostscript common to
  21. # Turbo C and Turbo/Borland C++.
  22.  
  23. # Make sure we get the right default target for make.
  24.  
  25. dosdefault: default
  26.  
  27. # Define the platform name.
  28.  
  29. PLATFORM=tbc_
  30.  
  31. # Define the extensions for the object and executable files.
  32.  
  33. OBJ=obj
  34. XE=.exe
  35.  
  36. # Define the need for uniq.
  37.  
  38. UNIQ=uniq$(XE)
  39.  
  40. # Define the current directory prefix, shell quote string, and shell name.
  41.  
  42. EXP=
  43. QQ="
  44. SH=
  45. SHP=
  46.  
  47. # Define the memory model for Turbo C.  Don't change it!
  48.  
  49. MM=l
  50.  
  51. # Define the generic compilation flags.
  52.  
  53. !if $(CPU_TYPE) >= 486
  54. ASMFLAGS=/DFOR80386 /DFOR80486
  55. PLATOPT=$(F286) -DFOR80386 -DFOR80486
  56. !elif $(CPU_TYPE) >= 386
  57. ASMFLAGS=/DFOR80386
  58. PLATOPT=$(F286) -DFOR80386
  59. !elif $(CPU_TYPE) >= 286
  60. ASMFLAGS=
  61. PLATOPT=$(F286)
  62. !elif $(CPU_TYPE) >= 186
  63. ASMFLAGS=
  64. PLATOPT=-1
  65. !else
  66. ASMFLAGS=
  67. PLATOPT=
  68. !endif
  69.  
  70. !if $(CPU_TYPE) == 486 || $(FPU_TYPE) >= 287
  71. FPFLAGS=-f287
  72. FPLIB=fp87
  73. !elif $(FPU_TYPE) != 0
  74. FPFLAGS=-f87
  75. FPLIB=fp87
  76. !else
  77. FPFLAGS=
  78. FPLIB=emu
  79. !endif
  80.  
  81. !if $(USE_ASM)
  82. INTASM=iutilasm.$(OBJ)
  83. PCFBASM=gdevegaa.$(OBJ)
  84. !else
  85. INTASM=
  86. PCFBASM=
  87. !endif
  88.  
  89. # Define the generic compilation rules.
  90.  
  91. .asm.obj:
  92.     $(ASM) $(ASMFLAGS) $<;
  93.  
  94. # -------------------------- Auxiliary programs --------------------------- #
  95.  
  96. # The dependencies on AK are semi-bogus: AK is null for Turbo C,
  97. # ccf.tr for Turbo/Borland C++.
  98.  
  99. ansi2knr$(XE): ansi2knr.c $(AK)
  100.     $(CC) $(CCFLAGS) -L$(LIBDIR) ansi2knr.c
  101.  
  102. genarch$(XE): genarch.c $(AK)
  103.     $(CC) $(CCFLAGS) -L$(LIBDIR) genarch.c
  104.  
  105. # We need a substitute for the Unix uniq utility.
  106. # It only has to handle stdin and stdout, no options.
  107. uniq$(XE): uniq.c
  108.     $(CC) $(CCFLAGS) -L$(LIBDIR) uniq.c
  109.  
  110. # -------------------------------- Library -------------------------------- #
  111.  
  112. # The Turbo/Borland C(++) platform
  113.  
  114. tbc__=gp_itbc.$(OBJ) gp_dosfb.$(OBJ) gp_msdos.$(OBJ)
  115. tbc_.dev: $(tbc__)
  116.     $(SHP)gssetmod tbc_ $(tbc__)
  117.